package com.chixing.day06.StaticDemo;

public class Person {
    public static int a = 20;
    public int b = 10;
    public static Person p = new Person();

    static {
        System.out.println("static person代码块");
    }

    {
        System.out.println("person普通代码块");
    }

    public Person() {
        System.out.println("person无参构造函数");
    }

    //类方法:调用才会运行
    public static void fun1() {
        System.out.println("fun1");
    }

    public static void fun2() {
        System.out.println("fun2");
    }

    //实例方法:现有字符对象
    public void fun3() {
        System.out.println("fun3");
    }

}
